﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MDF.DataHelper.BussinessObject;
using System.Data;
using MDF.DataHelper.DataObject;
using MDF.Utilites.Tools;
using MDF.DataHelper.BussinessObject.UsersBO;
using MDF.DataHelper.DataObject.UsersDO;

namespace MDF.DataHelper.BussinessLogic.UsersBL
{
    public class UserGroupInRolesBUS : BaseBussinessLogic
    {
        #region staticMember
        /// <summary>
        /// 
        /// </summary>
        private static UserGroupInRolesBUS _instance;
        /// <summary>
        /// 
        /// </summary>
        public static UserGroupInRolesBUS Current
        {
            get { return _instance == null ? _instance = new UserGroupInRolesBUS() : _instance; }
        }
        #endregion

        public List<UserGroupInRoles> GetByGroupID(int _iGroupID)
        {
            DataTable dt = new DataTable();
            UserGroupInRolesDAO objUserInGroupsDAO = new UserGroupInRolesDAO(this.m_objData);
            dt = objUserInGroupsDAO.GetByGroupID(_iGroupID);
            var lstTemp = dt.ToList<UserGroupInRoles>();
            return lstTemp;
        }
    }
}
